import java.util.Scanner;

public class WangFei {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入成绩" );
        int yuwen=input.nextInt();
        int shuxue=input.nextInt();
        int yingyu=input.nextInt();
        System.out.println("语文成绩为"+yuwen);
        System.out.println("数学成绩为"+shuxue);
        System.out.println("英语成绩为"+yingyu);
        int sum=yuwen+shuxue+yingyu;
        int average=(yuwen+shuxue+yingyu)/3;
        System.out.println("总分为"+sum+"分");
        System.out.println("平均分为"+average+"分");
    }
}
